import Vue from 'vue'
import App from './App.vue'
import "@/mobile/flexible" // 适配
import "@/styles/reset.css" // 初始化样式
import router from '@/router' //路由对象
import { Tabbar, TabbarItem, NavBar,Row, Col, Image as VanImage, Cell, Icon, Search } from 'vant'
// 测试封装得api方法
// 目标：封装网络i请求
// src/utils/request.js设置地址到处axios函数
// src/api/Home.js请求方法axios{{url“具体”}}
// src/api/index.js把home.js里得函数引入过来统一导出
// 具体逻辑页面，引入api/index.js请求方法async+await等待axios得结果回来
import {recommendMusicAPI} from '@/api'
async function fn() {
  const res = await recommendMusicAPI()
  console.log(res);
}
fn()
// 全局注册tabbar标签篮
Vue.use(Icon)
Vue.use(Cell)
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);//注册头部导航栏
Vue.use(Col);
Vue.use(Row);
Vue.use(VanImage)
Vue.use(Search)
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
